package com.lxz.bookmanager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lxz.bookmanager.entity.Reader;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

/**
 * 用户信息
 */
@Repository
@Mapper
public interface ReaderMapper extends BaseMapper<Reader> {
    //获取所有注册用户
    List<Reader> getAllReader();

    //获取读者姓名
    String getReaderName(String readerId);

    //获取读者信息
    Reader getReaderInfo(String readerId);

    //更新读者信息
    void updateInfo(Reader reader);


}
